Optimal. Leaf size=70 \[ -\frac{\tan ^5(c+d x)}{5 a^2 d}-\frac{i \tan ^4(c+d x)}{2 a^2 d}-\frac{i \tan ^2(c+d x)}{a^2 d}+\frac{\tan (c+d x)}{a^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0784553, antiderivative size = 70, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.097, Rules used = {3088, 848, 75} \[ -\frac{\tan ^5(c+d x)}{5 a^2 d}-\frac{i \tan ^4(c+d x)}{2 a^2 d}-\frac{i \tan ^2(c+d x)}{a^2 d}+\frac{\tan (c+d x)}{a^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3088
Rule 848
Rule 75
Rubi steps
\begin{align*} \int \frac{\sec ^6(c+d x)}{(a \cos (c+d x)+i a \sin (c+d x))^2} \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{\left (1+x^2\right )^3}{x^6 (i a+a x)^2} \, dx,x,\cot (c+d x)\right )}{d}\\ &=-\frac{\operatorname{Subst}\left (\int \frac{\left (-\frac{i}{a}+\frac{x}{a}\right )^3 (i a+a x)}{x^6} \, dx,x,\cot (c+d x)\right )}{d}\\ &=-\frac{\operatorname{Subst}\left (\int \left (-\frac{1}{a^2 x^6}-\frac{2 i}{a^2 x^5}-\frac{2 i}{a^2 x^3}+\frac{1}{a^2 x^2}\right ) \, dx,x,\cot (c+d x)\right )}{d}\\ &=\frac{\tan (c+d x)}{a^2 d}-\frac{i \tan ^2(c+d x)}{a^2 d}-\frac{i \tan ^4(c+d x)}{2 a^2 d}-\frac{\tan ^5(c+d x)}{5 a^2 d}\\ \end{align*}
Mathematica [A] time = 0.407311, size = 77, normalized size = 1.1 \[ \frac{\sec (c) \sec ^5(c+d x) (-5 \sin (2 c+d x)+5 \sin (2 c+3 d x)+\sin (4 c+5 d x)-5 i \cos (2 c+d x)+5 \sin (d x)-5 i \cos (d x))}{20 a^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.175, size = 47, normalized size = 0.7 \begin{align*}{\frac{1}{d{a}^{2}} \left ( \tan \left ( dx+c \right ) -{\frac{ \left ( \tan \left ( dx+c \right ) \right ) ^{5}}{5}}-{\frac{i}{2}} \left ( \tan \left ( dx+c \right ) \right ) ^{4}-i \left ( \tan \left ( dx+c \right ) \right ) ^{2} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.998652, size = 63, normalized size = 0.9 \begin{align*} -\frac{6 \, \tan \left (d x + c\right )^{5} + 15 i \, \tan \left (d x + c\right )^{4} + 30 i \, \tan \left (d x + c\right )^{2} - 30 \, \tan \left (d x + c\right )}{30 \, a^{2} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.456679, size = 267, normalized size = 3.81 \begin{align*} \frac{40 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + 8 i}{5 \,{\left (a^{2} d e^{\left (10 i \, d x + 10 i \, c\right )} + 5 \, a^{2} d e^{\left (8 i \, d x + 8 i \, c\right )} + 10 \, a^{2} d e^{\left (6 i \, d x + 6 i \, c\right )} + 10 \, a^{2} d e^{\left (4 i \, d x + 4 i \, c\right )} + 5 \, a^{2} d e^{\left (2 i \, d x + 2 i \, c\right )} + a^{2} d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13239, size = 63, normalized size = 0.9 \begin{align*} -\frac{2 \, \tan \left (d x + c\right )^{5} + 5 i \, \tan \left (d x + c\right )^{4} + 10 i \, \tan \left (d x + c\right )^{2} - 10 \, \tan \left (d x + c\right )}{10 \, a^{2} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]